import { createApp } from "vue";
import { store } from "./store";
// normalize.css
import "normalize.css/normalize.css";
// 全局样式
import "./styles/index.less";
// tailwindcss
import "./styles/tailwind.css";
// svg icon
import "virtual:svg-icons-register";

import App from "./App.vue";
import router from "./router";

// Toast
import "vant/es/toast/style";

// Dialog
import "vant/es/dialog/style";

// Notify
import "vant/es/notify/style";

// ImagePreview
import "vant/es/image-preview/style";

// 引入高德地图
import VueAMap, { initAMapApiLoader } from "@vuemap/vue-amap";
import "@vuemap/vue-amap/dist/style.css";
initAMapApiLoader({
  key: "9b8520f9dcff5eeac3e47eef44f411a7",
  securityJsCode: "5f4c84c171f14ef3b6978f6ac3e3c77b" // 新版key需要配合安全密钥使用
});

const app = createApp(App);
app.use(store);
app.use(router);
app.use(VueAMap);
app.mount("#app");
